<extend name="Base/common"/>
<block name="header">
    <include file="Public/_nav"/>
    <link type="text/css" rel="stylesheet" href="__CSS__/wckc.css">
    <script type="text/javascript" src="__JS__/common.js"></script>
</block>


<block name="body">

      <!--   <include file="Public/_hot_sell"/> -->
        <!-- 左侧菜start -->
        <div class="col-md-2">            
          <include file="Public/sidebar"  />
        </div>
        <!-- 左侧菜end -->
  <!--内容栏start-->
  <div class="col-md-10 content"> 
 
  <!-- 标题栏 -->
<!-- 左侧 nav -->
         <ul class="nav nav-tabs">
           <li><a href="{:U('Student/index')}"><i class="icon icon-th-list"> </i>学生选课</a></li>  
           <li class="active"><a href="{:U('Student/classscore')}"><i class="icon icon-calendar"> </i>学生成绩</a></li>           
           <li><a href="{:U('Student/outstand')}"><i class="icon icon-calendar"> </i>优秀学员</a></li>
           <li><a href="{:U('Student/updateScoredata')}"><i class="icon icon-th-large"> </i>学期成绩汇总</a></li>
       </ul>
  
        <h3><a href="__SELF__">学员成绩查询</a></h3>
       <div class="col-md-2">
        <form method="post" action="__SELF__" name="classform">
        <select name="class" class="form-control form-horizontal" role="form" onchange="this.form.submit()">
                <option value = "{$_cur.bj_name}">{$_cur.bj_name}</option>                
                <foreach name="classlist" item="vo">
                <option value="{$vo.bj_name}">{$vo.bj_name}</option>
                </foreach>
            </select>
            </form>
            </div>
            <div class="col-md-9">
            <a class="btn btn-primary"  href="{:U('Excel/exportStudenscore?class='.$_cur['class'])}" >导出学生成绩册[Excel-xls]</a>
            </div>
            
            <div class="clearfix">&nbsp</div>

        <div class="col-md-12">
        <table class="table table-bordered table-striped" >
        <notempty name="student">        
           <thead>
            <tr class="success">
            <!-- <th>序号</th> -->
            <th class="text-center">班级</th>            
            <th >学号</th>
            <th >姓名</th>
            <th >性别</th>
            <th >校本课程</th>
            <th >教师</th>
            <th >成绩</th>
            <th >是否优秀学员</th>
            <th class="text-center">更新日期</th>
            </tr>  
           </thead>  
          <tr >       
        <volist name="student" id="st" empty="请先选择班级">

            <!-- <td>{$i}</td> -->
            <td>{$st.class}</td>
			      <td>{$st.code}</td>
            <td>{$st.name}</td>
            <td>{$st.sex}</td>
            <td>{$st.cname}</td>
            <td>{$st.teacher}</td>
      			<td width="10%">{$st.score}</td>
      			<td><if condition="$st.outstand eq 1">是</if></td>
      			<td>
            <if condition="($st.scoreuptime eq 0)"> &nbsp <else/>
                  {$st.scoreuptime|date='Y-m-d',###}</if>
                  </td>
          </tr>
        </volist>
        <else/>
        <tr>
            <td colspan="9" class="text-center"> aOh! 请先选择班级信息! </td>
        </tr>
      </notempty>
        </table>
    </div>
</block>